<template>
    <div>
        <h2 v-click='name' v-color='"red"' v-permission='5'>{{name}}</h2>
        <button v-permission='3'>按钮</button>
    </div>
</template>
<script>
// @ is an alias to /src
export default {
    name: 'XXX',
    data() {
        return {
          name:'珠峰'
        }
    },
    directives:{
      color(el,obj){
        el.style.color = obj.value
      }
    },
    components: {
        
    }
}
</script>
<style lang="less">

</style>